import { Controller, Get } from '@nestjs/common';
import { AppService } from './app.service';
import * as svgCaptcha from 'svg-captcha';

@Controller()
export class AppController {
  constructor(private readonly appService: AppService) {}

  @Get()
  getHello(): string {
    const capcha = svgCaptcha.create();
    const text = capcha.text;
    const data = capcha.data;
    return this.appService.getHello();
  }
}
